/*!
 * \file MediaEventReleaseConnection.h
 * \brief Event indicating release of connection is requested
 */

#ifndef MGW_MEDIA_EVENT_RELEASE_CONNECTION_H
#define MGW_MEDIA_EVENT_RELEASE_CONNECTION_H

#include "EventData.h"
#include "MediaGlobals.h"
#include "common.pb.h"

namespace tsc
{
namespace mgw
{

/**
 * Event which holds configuration parameters for new media connection.
 * First event handled by MediaGenerator
 */
class MediaEventReleaseConnection : public common::EventData
{
public:

    MediaEventReleaseConnection(uint32_t connectionId) :
		common::EventData(MEDIA_RELEASE_CONNECTION),
		mConnectionId(connectionId)
	{

	}

	virtual ~MediaEventReleaseConnection()
	{

	}

	uint32_t getConnectionId() const
	{
		return mConnectionId;
	}

private:
	uint32_t mConnectionId;
};

} // namespace mgw
} // namespace tsc

#endif // MGW_MEDIA_EVENT_RELEASE_CONNECTION_H
